#ifndef __BASE_PARAM_AND_CONFIG_H__
#define __BASE_PARAM_AND_CONFIG_H__
// #include <typescommon.h>

// configue flag
#define LT_PTC_CMD_HOST_ENABLE 1
#define LT_PTC_CMD_SUB_ENABLE 1
#define LT_PTC_CMD_USE_CRYPTE 1

#define DEVICE_PLATFORM_LINUX 0
#define DEVICE_PLATFORM_ARM32_MCU 1
#define DEVICE_PLATFORM_C51_MCU 2
#define DEVICE_PLATFORM_CONFIGURE DEVICE_PLATFORM_LINUX
#if DEVICE_PLATFORM_CONFIGURE == DEVICE_PLATFORM_C51_MCU
#define DEV_C51_XDATA_FLAG xdata
#define DEV_C51_CODE_FLAG code
typedef char int8_t;
typedef unsigned char uint8_t;
typedef int int16_t;
typedef unsigned int uint16_t;
typedef long int32_t;
typedef unsigned long uint32_t;
#else
#include <inttypes.h>
#define DEV_C51_XDATA_FLAG 
#define DEV_C51_CODE_FLAG 
#endif

#define LT_PTC_PRE_FIX_SM4_KEY "RybCaYKRH5d3xMNR"
#define LT_CMD_BOARDCAST_ADDR 0XFF
#define LT_CMD_DEFAULT_SN "1234567890ABCDEF"

// param
#define LT_CMD_SN_MAX_SIZE 16

// 
#define DEV_PARAM_FLASH_ADDR 0X00

#endif
